<%@ page import="java.sql.*,studentportal.*"%>
<%
		String sid=request.getParameter("sid");
		Connection con=MySQLDriver.getConnection(); 
		Statement st=con.createStatement();
		System.out.println("After Statement");
		String sr="update Student_certificates set apply_status='y'  where student_id='"+sid+"'";
		System.out.println(sr);
		int i=st.executeUpdate(sr);
		if(i==1)
		{

				RequestDispatcher rd=request.getRequestDispatcher("/ChangeStatusSuc.jsp");
				rd.forward(request,response);
		}
		else
		{
				RequestDispatcher rd=request.getRequestDispatcher("/AdminNotification.jsp");
				rd.forward(request,response);
		}
%>